html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
}
.header {
    text-align: center;
    padding: 1rem;
    background-color: #16baaa;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
    & #account-info,
    & #account-action {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.4rem;
    }
    & #account-info {
        left: 1.4rem;
    }
    & #account-action {
        right: 1.4rem;
    }
}

.main {
    flex: 1;
    display: flex;
    padding: 20px;
    & #question-div {
        width: 34%;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-right: 1rem;
        overflow-y: auto;
        padding: 0.5rem;
    }
    & #answer-div {
        flex: 1;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        overflow-y: auto;
    }
}

#question-option {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    gap: 0.5rem; /* 为按钮之间添加间距 */
    & #search-title-form {
        flex: 1;
        min-width: 0;
    }
    & #question-add {
        flex: 0 0 auto;
    }
}

#search-title-form {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    & #search-title-input {
        flex: 1; /* 输入框会根据可用空间自动扩展 */
        min-width: 0; /* 防止输入框在小屏幕上缩小到不合理的尺寸 */
    }
    & #search-title-submit {
        flex: 0 0 auto; /* 按钮保持固定的宽度，不拉伸也不缩小 */
        /*width: 80px; !* 可选：设置按钮的具体宽度 *!*/
    }
}

.footer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #666;
}